home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / bison-1.22 / README.macintosh < prev    next >
Encoding:
Text File  |  1994-08-11  |  1.6 KB  |  35 lines  |  [TEXT/EMAC]

  1. Notes on the THINK C 6.0 Macintosh port of Bison 1.22
  2. J. Scott Hofmann (scotth@visix.com) 8/10/94
  3.  
  4. This is a very minimal port to the Macintosh. In fact, the only changes I made were
  5. to #include <console.h> and call ccommand() in main.c. I also added these #defines
  6. to the THINK C options dialog:
  7.  
  8. #define XPFILE1 "bison.hairy"
  9. #define XPFILE  "bison.simple"
  10.  
  11. #define HAVE_STRING_H
  12. #define HAVE_STDLIB_H
  13. #define HAVE_STRERROR
  14.  
  15. #define mktemp tmpnam
  16.  
  17. Due to differences in the semantics of tmpnam() vs. mktemp(), bison leaves several
  18. small temp files in its directory. I'll eventually get around to fixing this when
  19. I complete a Metrowerks port which includes an enhanced front end. (Yes! An actual
  20. Macintosh front end!)
  21.  
  22. In order to use bison, copy the application "bison-1.22" and the grammar skeleton
  23. files "bison.hairy" and "bison.simple" to the directory containing the grammar file
  24. you want processed. Then, just enter the command line arguments you would under
  25. UNIX in ccommand()s dialog box. Bison will then run, printing anything that would
  26. normally appear on stdout or stderr in the console window.
  27.  
  28. For instructions on how to use bison, either read the man page "bison.1" (a lot
  29. easier on a UNIX box with nroff), read the texinfo source "bison.texinfo", or
  30. copy the info files "bison.info-*" (don't forget "bison.info", as well) into 
  31. the info subdirectory of Marc Parmet's excellent Macintosh port of GNU Emacs 
  32. 18.59, available from ftp.cs.cornell.edu:/pub/parmet. You'll need the "info"
  33. package, distributed seperately from the main Emacs distribution. Make sure you
  34. have version 1.14 of emacs.
  35.